package org.springframework.howelly.services;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.howelly.model.Categoria;
import org.springframework.howelly.model.Gasto;
import org.springframework.stereotype.Service;

@Service
public interface CategoriaService {

    public List<Categoria> findCategoriasByObra(long obraId);

    public List<Gasto> findGastosWithCategoria(String categoria, long obraId);

    public BigDecimal calculateTotalForCategory(List<Gasto> gastosWithCategories);

}
